/**
 * @author wcj
 * @Date 2021/6/2 11:10
 * @Version 1.0
 */
public class TestEdenAllocation {

    private static final int _1MB = 1024 * 1024;

    /**
     * 对象优先分配到Eden区域
     */
    public static void test() {
        byte[] allocation1, allocation2, allocation3;
        allocation1 = new byte[2 * _1MB];
        allocation2 = new byte[2 * _1MB];
        allocation3 = new byte[2 * _1MB];
    }

    public static void main(String[] args) {
        test();
    }
}
